package org.example.sping02.entity;

import lombok.Data;

@Data
public class User {

    private int id;
    private String name;
    private int age;

    public User() {
        System.out.println("User...被构造...");
    }

    public User(int id, String name, int age) {
        this.id = id;
        this.name =name;
        this.age =age;
    }

    public User(int id, String name) {
        this.id = id;

    }

    public User(String name, int id) {
        this.name = name;
        this.id = id;
    }

}
